package com.jubao.ejb.dao;

import java.io.Serializable;
import java.util.List;

import com.jubao.ejb.entity.StoreTransaction;

public interface StoreTransactionDao extends Serializable {

	public StoreTransaction save(StoreTransaction storeTransaction);

	public StoreTransaction find(long sysId);

	/**
	 * Find the latest transaction of store
	 * 
	 * @param storeSysId
	 * @return
	 */
	public StoreTransaction findLatest(long storeSysId);
	/**
	 * get store StoreTransaction list 
	 * 
	 * @param storeSysId
	 * @param pgno
	 * @param pgsize
	 * @return
	 */
	public List<StoreTransaction> getStoreTransactionList(long storeSysId, int pgno, int pgsize);

	/**
	 * get count of store StoreTransaction
	 * 
	 * @param storeSysId
	 * @return
	 */
	public long getStoreTransactionCount(long storeSysId);

}
